import time

from lx.test_1203.Page import Page
from selenium import webdriver
import unittest
from time import sleep

class MyTestCase(unittest.TestCase):

    def setUp(self):
        self.driver = webdriver.Chrome()
        self.driver.maximize_window()

    def tearDown(self):
        self.driver.quit()
        sleep(10)

    def test_01(self):
        po=Page(self.driver)
        po.open_url('http://localhost:8080/login')
        time.sleep(1)
        po.usernameSR()
        time.sleep(1)
        po.passwordSR()
        time.sleep(1)
        po.loginDJ()
        time.sleep(1)
if __name__ == '__main__':
    unittest.main()
